<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看个人成绩</title>
</head>
<body>
	<table>
		<tr>
			<td>姓名</td>
			<td>${student2.name}</td>	
		</tr>
		<tr>
			<td>性别</td>
			<td>${student2.sex}</td>
		</tr>
		<tr>
			<td>班级</td>
			<td>${student2.tbClass.className}</td>
		</tr>
		<tr>
			<td>课程</td>
			<td>成绩</td>
		</tr>
		<c:forEach items="${student2.grades}" var="c">
			<tr>
				<td>${c.course.courseName}</td>
				<td>${c.grade }</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>